/**
 * 引入文件
 */
import {createApp} from 'vue';
import App                                    from './App.vue';
import router                                 from './router';
import {Tabbar, TabbarItem, Swipe, SwipeItem} from 'vant';
import head from "/src/components/slot/head/div-head.vue";
import swipe from "/src/components/content/scroll/swipe.vue";
import axios from "axios";

/**
 * 引入组件样式
 */
import 'vant/lib/index.css';
import './assets/main.css';

const app = createApp(App);

/**
 * 使用插件
 */
app.use(router)
    .use(Tabbar)
    .use(TabbarItem)
    .use(SwipeItem)
    .use(Swipe);

/**
 * 注册组件、插槽
 */
app.component('div-head', head);
app.component('swipe', swipe);

app.mount('#app');
